package com.zzr.zzrbackend.pojo.dto.result;

import lombok.Data;

import java.util.Objects;

@Data
public class SelectContent {
    private String bookName;

    private String type;

    private Long time;

    private String name;

    @Override
    public boolean equals(Object object){
        if(object == null){
            return false;
        }
        if(this == object) return true;
        if(object instanceof SelectContent){
            SelectContent selectContent = (SelectContent) object;
            if(selectContent.type.equals( this.type) && selectContent.bookName.equals(this.bookName))
                return true;
        }
        return false;
    }
    @Override
    public int hashCode(){
        return Objects.hash(type,bookName);
    }
}
